package com.study.controller;

import com.study.common.ResponseMessage;
import com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/server")
public class OauthController {

    @ResponseBody
    @RequestMapping("code")
    public ResponseMessage getCode(@RequestParam("code") String code){
        return ResponseMessage.ok(code);
    }
}
